added testing and dynamic title