fix alert styling, fix redirect typo in note controller, clean up commented code in doc controller