Refactored model - replaced beforeSave with behaviors

Used behaviors for admin id and admin ip