added functionality to support user sessions and styled the popup accordingly.
merges with popup