[ticket/416] Add method for handling ajax requests

B3P-416