making cal and home routes
added cycle logic for end date
made stats template script in application html erb