macros for view and changing bangbangcontroller