Weak and variational methods for moving boundary problems