defining models and enabling admin panel