Changed how buttons appear and disappear

Made buttons appear and disappear properly.