added adding functionality on UI