added functionality to close button, added temp accept and reject commands