setting up layout for gui