Changed list elements to form elements for the buttons