added methods to hide content and handle clicks