Created extensions API and moved error_panel to an extension