designed ui and added functionality to buttons