fixed errors,changed gui