Fade effect added on modal show. Some code improvements.