move view-method to views dir