created custom controller method