why is that controller code being run twice ._. oh well should be tighter now