Refactored console and fixed selection thing
cleanup