shortened code

I really made it short now, short but sweet. Working on the command line gui function