Issue254

partially fixed #Issue 254 and applied some minor modifications to the gui