updating controllers js for further testing