draft implementation of mainmenu

Also the onClick function pointer revieves a caller argument now.