change render to redirect and redirect to logs page