Removed unneccessary methods and code in gui