Add hide and show functions to title and menu