add exit function in StartPanel