added compile method to gui