fixed control buttons bug
added priority method in class CMSNav