init gui components only once