added javascript code to toggle the status of an item by clicking on the row instead of just using the button