Added Event and GUI functionality