refactored contacts controller into seperate actions