added selector to main menu and fixed segfault upon exit

Signed-off-by: sabot <sabot@inuits.eu>