Added basic functionality to main GUI