Added view and ajax method to call