created up button and function for it