selecting enable or disable buttons written in index.html.erb