A simple modal made from scratch