onclick function added for settings and food