implemented error view
implemented select theory type and save value