Moved some code to 'go' function

Moved some code which was updating pagination dot to go function. Reason for this is, since i have exposed a method called 'goTo' to public the pagination dots has to be updated for each function call.