Moved set_layout to basic ajax class

This way it doesn’t have to be called individually for each ajax route