GUI made and refactored.