add userid to alerts and remove unused methods in contorllers