fixed all permission issues and clean up styles