added function to seekbar