hide/show panles in modal window according to edit buttons