VIEW:

Fixed routing configuration.

CONTROLLER:

Added helper functions for query.