use the bootstrap modal functions

The bootstrap modal functions take care of some functions for you, like adding and removing the body class and placing/removing the backdrop div. It also enables the fade/slide effects.