Removed unneccessary buttons from window code