added non-logged in functions. started on javascript for that