Check auth and load api before every action
Renamed functions; cleanup