Added handler to TO TOP button, fixed some bugs with header