corrected minor syntactical errors
disabled some log statements for performance reasons
corrected menu view (active still not working correctly)