calendar working within tab