Move models to models.py, add actions