Fixed deprecated present and dismiss method calls