Implemented profile save in page action. Fixed template loading.