Separated gui application from application classes