So basically what I am trying to do is to implement the behaviour of the Facebook messenger chat head. I have done the most of the work regarding the handli