textfield hide and show based on scroll direction, cleaned up layout