moved refresh to purge view
fixed purge controller
added require to purge method
updated purge template