modularized blur code, added modal code, backed up existing code