forgot to put static in controller variables, which caused some bugs - fixed