added contact function and view