refactored context, send_url(), updated templates