added javascript to hide unneccessary buttons