set up admin and fixed some model issues