Building the main interface