refactored Mayor atributes
added viewport features