designed ui and added functionality to cancel button