Remove duplicate code in grain transact controller
Add ajax powers to home page calendar