fix broken cancel/done button logic
visibility of cancel button moved to js