stripped out jquery logic from controller