if plan has been deleted, set planId to null, and enable button for creating new plan