implemented the function for the templatebutton

Created the dropdown window that shows when clicking the template
button. the template icons do not have any functionality. This will be
fixed when the database changes are implemented properly.