assigning values to success template