start of handling interface hiding and displaying