refresh and settings functionality and moved menu toggle logic into menu views