added the function of different buttons
added sticky to the content