form 'hide' and 'show' elements don't work properly