Make clicking work with firebase