Added preferences menu and check 1st time run